home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
018a
/
what300.zip
/
WPCONV.BAT
< prev
Wrap
DOS Batch File
|
1991-04-30
|
935b
|
44 lines
@echo off
rem
rem WPCONV.BAT
rem
rem Automate conversion using WHAT?format!
rem
rem Change to a directory containing
rem assorted WordPerfect files and give
rem the command:
rem
rem for %f in (*.*) do wpconv %f
rem
rem The files are converted to DCA format
rem using the correct version of WP's
rem CONVERT.EXE.
rem
if not exist %1 goto :end
set what=what
c:\prog\what %1 /Q
if errorlevel 33 goto :notwp
if errorlevel 32 goto :wp
if errorlevel 1 goto :notwp
goto :end
:wp
if "%what%"=="WordPerfect 5.1" goto :wp51
if "%what%"=="WordPerfect 5.0" goto :wp50
if "%what%"=="WordPerfect 4.x" goto :wp4x
echo New version: %what%
goto :end
:wp51
c:\convert\convwp51 %1 d:\DCAstuff\%1 1 1 c:\text\wp51\std.crs
goto :end
:wp50
c:\convert\convwp50 %1 d:\DCAstuff\%1 1 1
goto :end
:wp4x
c:\convert\convwp42 %1 d:\DCAstuff\%1 1 1
goto :end
:notwp
echo File is not WordPerfect format!
:end
set what=